package cn.ainit.exchange.entity;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author xuzq
 */
@Entity
@Table(name="SYS_EXCHANGE_TABLE")
public class ExchangeTable  implements java.io.Serializable {

    // Fields    
     private String groupTableId;
     private String xmlSuperLabelName;
     private String xmlLabelName;
     private String displayXmlSuperLabel;
     private String groupId;
     private String superTableId;
     private String dataSourceType;
     private String txtSchemaFile;
     private String tableName;
     private String dataDirection;
     private String isTopLevelXml;
     private String dataRange;
     private String rangeCond;
     private String dataSelectDsid;
     private String rangeClass;
     private String updateMode;
     private String incrMode;
     private String timestampCol;
     private String statValues;
     private String incrClass;
     private String columnEnumMode;
     private String colEnumDsid;
     private String colEnumDsclass;
     private String colEnumClass;
     private String relationColname;
     private String relationDbname;
     private String superRelationColname;
     private String superRelationDbname;
     private Long sortNum;
     private String memo;
     private String fileNameCol;


    // Constructors

    /** default constructor */
    public ExchangeTable() {
    }

    // Property accessors
    @Id
    @Column(name="GROUP_TABLE_ID", length=32)

    public String getGroupTableId() {
        return this.groupTableId;
    }
    
    public void setGroupTableId(String groupTableId) {
        this.groupTableId = groupTableId;
    }

    @Column(name="XML_SUPER_LABEL_NAME", length=128)

    public String getXmlSuperLabelName() {
        return this.xmlSuperLabelName;
    }
    
    public void setXmlSuperLabelName(String xmlSuperLabelName) {
        this.xmlSuperLabelName = xmlSuperLabelName;
    }

    @Column(name="XML_LABEL_NAME", length=128)

    public String getXmlLabelName() {
        return this.xmlLabelName;
    }
    
    public void setXmlLabelName(String xmlLabelName) {
        this.xmlLabelName = xmlLabelName;
    }

    @Column(name="DISPLAY_XML_SUPER_LABEL")

    public String getDisplayXmlSuperLabel() {
        return this.displayXmlSuperLabel;
    }
    
    public void setDisplayXmlSuperLabel(String displayXmlSuperLabel) {
        this.displayXmlSuperLabel = displayXmlSuperLabel;
    }

    @Column(name="GROUP_ID", length=32)

    public String getGroupId() {
        return this.groupId;
    }
    
    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    @Column(name="SUPER_TABLE_ID", length=32)

    public String getSuperTableId() {
        return this.superTableId;
    }
    
    public void setSuperTableId(String superTableId) {
        this.superTableId = superTableId;
    }

    @Column(name="DATA_SOURCE_TYPE",length=1)

    public String getDataSourceType() {
        return this.dataSourceType;
    }
    
    public void setDataSourceType(String dataSourceType) {
        this.dataSourceType = dataSourceType;
    }

    @Column(name="TXT_SCHEMA_FILE", length=4000)

    public String getTxtSchemaFile() {
        return this.txtSchemaFile;
    }
    
    public void setTxtSchemaFile(String txtSchemaFile) {
        this.txtSchemaFile = txtSchemaFile;
    }

    @Column(name="TABLE_NAME",  length=128)

    public String getTableName() {
        return this.tableName;
    }
    
    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    @Column(name="DATA_DIRECTION", length=1)

    public String getDataDirection() {
        return this.dataDirection;
    }
    
    public void setDataDirection(String dataDirection) {
        this.dataDirection = dataDirection;
    }

    @Column(name="IS_TOP_LEVEL_XML", length=1)

    public String getIsTopLevelXml() {
        return this.isTopLevelXml;
    }
    
    public void setIsTopLevelXml(String isTopLevelXml) {
        this.isTopLevelXml = isTopLevelXml;
    }

    @Column(name="DATA_RANGE", length=1)

    public String getDataRange() {
        return this.dataRange;
    }
    
    public void setDataRange(String dataRange) {
        this.dataRange = dataRange;
    }

    @Column(name="RANGE_COND", length=4000)

    public String getRangeCond() {
        return this.rangeCond;
    }
    
    public void setRangeCond(String rangeCond) {
        this.rangeCond = rangeCond;
    }

    @Column(name="DATA_SELECT_DSID", length=128)

    public String getDataSelectDsid() {
        return this.dataSelectDsid;
    }
    
    public void setDataSelectDsid(String dataSelectDsid) {
        this.dataSelectDsid = dataSelectDsid;
    }

    @Column(name="RANGE_CLASS", length=128)

    public String getRangeClass() {
        return this.rangeClass;
    }
    
    public void setRangeClass(String rangeClass) {
        this.rangeClass = rangeClass;
    }

    @Column(name="UPDATE_MODE", length=1)

    public String getUpdateMode() {
        return this.updateMode;
    }
    
    public void setUpdateMode(String updateMode) {
        this.updateMode = updateMode;
    }

    @Column(name="INCR_MODE", length=1)

    public String getIncrMode() {
        return this.incrMode;
    }
    
    public void setIncrMode(String incrMode) {
        this.incrMode = incrMode;
    }

    @Column(name="TIMESTAMP_COL", length=128)

    public String getTimestampCol() {
        return this.timestampCol;
    }
    
    public void setTimestampCol(String timestampCol) {
        this.timestampCol = timestampCol;
    }

    @Column(name="STAT_VALUES", length=1000)

    public String getStatValues() {
        return this.statValues;
    }
    
    public void setStatValues(String statValues) {
        this.statValues = statValues;
    }

    @Column(name="INCR_CLASS", length=128)

    public String getIncrClass() {
        return this.incrClass;
    }
    
    public void setIncrClass(String incrClass) {
        this.incrClass = incrClass;
    }

    @Column(name="COLUMN_ENUM_MODE", length=1)

    public String getColumnEnumMode() {
        return this.columnEnumMode;
    }
    
    public void setColumnEnumMode(String columnEnumMode) {
        this.columnEnumMode = columnEnumMode;
    }

    @Column(name="COL_ENUM_DSID", length=128)

    public String getColEnumDsid() {
        return this.colEnumDsid;
    }
    
    public void setColEnumDsid(String colEnumDsid) {
        this.colEnumDsid = colEnumDsid;
    }

    @Column(name="COL_ENUM_DSCLASS", length=128)

    public String getColEnumDsclass() {
        return this.colEnumDsclass;
    }
    
    public void setColEnumDsclass(String colEnumDsclass) {
        this.colEnumDsclass = colEnumDsclass;
    }

    @Column(name="COL_ENUM_CLASS", length=128)

    public String getColEnumClass() {
        return this.colEnumClass;
    }
    
    public void setColEnumClass(String colEnumClass) {
        this.colEnumClass = colEnumClass;
    }

    @Column(name="RELATION_COLNAME", length=128)

    public String getRelationColname() {
        return this.relationColname;
    }
    
    public void setRelationColname(String relationColname) {
        this.relationColname = relationColname;
    }

    @Column(name="RELATION_DBNAME", length=128)

    public String getRelationDbname() {
        return this.relationDbname;
    }
    
    public void setRelationDbname(String relationDbname) {
        this.relationDbname = relationDbname;
    }

    @Column(name="SUPER_RELATION_COLNAME", length=128)

    public String getSuperRelationColname() {
        return this.superRelationColname;
    }
    
    public void setSuperRelationColname(String superRelationColname) {
        this.superRelationColname = superRelationColname;
    }

    @Column(name="SUPER_RELATION_DBNAME", length=128)

    public String getSuperRelationDbname() {
        return this.superRelationDbname;
    }
    
    public void setSuperRelationDbname(String superRelationDbname) {
        this.superRelationDbname = superRelationDbname;
    }

    @Column(name="SORT_NUM", precision=11, scale=0)

    public Long getSortNum() {
        return this.sortNum;
    }
    
    public void setSortNum(Long sortNum) {
        this.sortNum = sortNum;
    }

    @Column(name="MEMO", length=400)

    public String getMemo() {
        return this.memo;
    }
    
    public void setMemo(String memo) {
        this.memo = memo;
    }

    @Column(name="FILE_NAME_COL", length=128)

    public String getFileNameCol() {
        return this.fileNameCol;
    }
    
    public void setFileNameCol(String fileNameCol) {
        this.fileNameCol = fileNameCol;
    }
   



   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof ExchangeTable) ) return false;
		 ExchangeTable castOther = ( ExchangeTable ) other; 
         
		 return ( (this.getGroupTableId()==castOther.getGroupTableId()) || ( this.getGroupTableId()!=null && castOther.getGroupTableId()!=null && this.getGroupTableId().equals(castOther.getGroupTableId()) ) )
 && ( (this.getXmlSuperLabelName()==castOther.getXmlSuperLabelName()) || ( this.getXmlSuperLabelName()!=null && castOther.getXmlSuperLabelName()!=null && this.getXmlSuperLabelName().equals(castOther.getXmlSuperLabelName()) ) )
 && ( (this.getXmlLabelName()==castOther.getXmlLabelName()) || ( this.getXmlLabelName()!=null && castOther.getXmlLabelName()!=null && this.getXmlLabelName().equals(castOther.getXmlLabelName()) ) )
 && ( (this.getDisplayXmlSuperLabel()==castOther.getDisplayXmlSuperLabel()) || ( this.getDisplayXmlSuperLabel()!=null && castOther.getDisplayXmlSuperLabel()!=null && this.getDisplayXmlSuperLabel().equals(castOther.getDisplayXmlSuperLabel()) ) )
 && ( (this.getGroupId()==castOther.getGroupId()) || ( this.getGroupId()!=null && castOther.getGroupId()!=null && this.getGroupId().equals(castOther.getGroupId()) ) )
 && ( (this.getSuperTableId()==castOther.getSuperTableId()) || ( this.getSuperTableId()!=null && castOther.getSuperTableId()!=null && this.getSuperTableId().equals(castOther.getSuperTableId()) ) )
 && ( (this.getDataSourceType()==castOther.getDataSourceType()) || ( this.getDataSourceType()!=null && castOther.getDataSourceType()!=null && this.getDataSourceType().equals(castOther.getDataSourceType()) ) )
 && ( (this.getTxtSchemaFile()==castOther.getTxtSchemaFile()) || ( this.getTxtSchemaFile()!=null && castOther.getTxtSchemaFile()!=null && this.getTxtSchemaFile().equals(castOther.getTxtSchemaFile()) ) )
 && ( (this.getTableName()==castOther.getTableName()) || ( this.getTableName()!=null && castOther.getTableName()!=null && this.getTableName().equals(castOther.getTableName()) ) )
 && ( (this.getDataDirection()==castOther.getDataDirection()) || ( this.getDataDirection()!=null && castOther.getDataDirection()!=null && this.getDataDirection().equals(castOther.getDataDirection()) ) )
 && ( (this.getIsTopLevelXml()==castOther.getIsTopLevelXml()) || ( this.getIsTopLevelXml()!=null && castOther.getIsTopLevelXml()!=null && this.getIsTopLevelXml().equals(castOther.getIsTopLevelXml()) ) )
 && ( (this.getDataRange()==castOther.getDataRange()) || ( this.getDataRange()!=null && castOther.getDataRange()!=null && this.getDataRange().equals(castOther.getDataRange()) ) )
 && ( (this.getRangeCond()==castOther.getRangeCond()) || ( this.getRangeCond()!=null && castOther.getRangeCond()!=null && this.getRangeCond().equals(castOther.getRangeCond()) ) )
 && ( (this.getDataSelectDsid()==castOther.getDataSelectDsid()) || ( this.getDataSelectDsid()!=null && castOther.getDataSelectDsid()!=null && this.getDataSelectDsid().equals(castOther.getDataSelectDsid()) ) )
 && ( (this.getRangeClass()==castOther.getRangeClass()) || ( this.getRangeClass()!=null && castOther.getRangeClass()!=null && this.getRangeClass().equals(castOther.getRangeClass()) ) )
 && ( (this.getUpdateMode()==castOther.getUpdateMode()) || ( this.getUpdateMode()!=null && castOther.getUpdateMode()!=null && this.getUpdateMode().equals(castOther.getUpdateMode()) ) )
 && ( (this.getIncrMode()==castOther.getIncrMode()) || ( this.getIncrMode()!=null && castOther.getIncrMode()!=null && this.getIncrMode().equals(castOther.getIncrMode()) ) )
 && ( (this.getTimestampCol()==castOther.getTimestampCol()) || ( this.getTimestampCol()!=null && castOther.getTimestampCol()!=null && this.getTimestampCol().equals(castOther.getTimestampCol()) ) )
 && ( (this.getStatValues()==castOther.getStatValues()) || ( this.getStatValues()!=null && castOther.getStatValues()!=null && this.getStatValues().equals(castOther.getStatValues()) ) )
 && ( (this.getIncrClass()==castOther.getIncrClass()) || ( this.getIncrClass()!=null && castOther.getIncrClass()!=null && this.getIncrClass().equals(castOther.getIncrClass()) ) )
 && ( (this.getColumnEnumMode()==castOther.getColumnEnumMode()) || ( this.getColumnEnumMode()!=null && castOther.getColumnEnumMode()!=null && this.getColumnEnumMode().equals(castOther.getColumnEnumMode()) ) )
 && ( (this.getColEnumDsid()==castOther.getColEnumDsid()) || ( this.getColEnumDsid()!=null && castOther.getColEnumDsid()!=null && this.getColEnumDsid().equals(castOther.getColEnumDsid()) ) )
 && ( (this.getColEnumDsclass()==castOther.getColEnumDsclass()) || ( this.getColEnumDsclass()!=null && castOther.getColEnumDsclass()!=null && this.getColEnumDsclass().equals(castOther.getColEnumDsclass()) ) )
 && ( (this.getColEnumClass()==castOther.getColEnumClass()) || ( this.getColEnumClass()!=null && castOther.getColEnumClass()!=null && this.getColEnumClass().equals(castOther.getColEnumClass()) ) )
 && ( (this.getRelationColname()==castOther.getRelationColname()) || ( this.getRelationColname()!=null && castOther.getRelationColname()!=null && this.getRelationColname().equals(castOther.getRelationColname()) ) )
 && ( (this.getRelationDbname()==castOther.getRelationDbname()) || ( this.getRelationDbname()!=null && castOther.getRelationDbname()!=null && this.getRelationDbname().equals(castOther.getRelationDbname()) ) )
 && ( (this.getSuperRelationColname()==castOther.getSuperRelationColname()) || ( this.getSuperRelationColname()!=null && castOther.getSuperRelationColname()!=null && this.getSuperRelationColname().equals(castOther.getSuperRelationColname()) ) )
 && ( (this.getSuperRelationDbname()==castOther.getSuperRelationDbname()) || ( this.getSuperRelationDbname()!=null && castOther.getSuperRelationDbname()!=null && this.getSuperRelationDbname().equals(castOther.getSuperRelationDbname()) ) )
 && ( (this.getSortNum()==castOther.getSortNum()) || ( this.getSortNum()!=null && castOther.getSortNum()!=null && this.getSortNum().equals(castOther.getSortNum()) ) )
 && ( (this.getMemo()==castOther.getMemo()) || ( this.getMemo()!=null && castOther.getMemo()!=null && this.getMemo().equals(castOther.getMemo()) ) )
 && ( (this.getFileNameCol()==castOther.getFileNameCol()) || ( this.getFileNameCol()!=null && castOther.getFileNameCol()!=null && this.getFileNameCol().equals(castOther.getFileNameCol()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getGroupTableId() == null ? 0 : this.getGroupTableId().hashCode() );
         result = 37 * result + ( getXmlSuperLabelName() == null ? 0 : this.getXmlSuperLabelName().hashCode() );
         result = 37 * result + ( getXmlLabelName() == null ? 0 : this.getXmlLabelName().hashCode() );
         result = 37 * result + ( getDisplayXmlSuperLabel() == null ? 0 : this.getDisplayXmlSuperLabel().hashCode() );
         result = 37 * result + ( getGroupId() == null ? 0 : this.getGroupId().hashCode() );
         result = 37 * result + ( getSuperTableId() == null ? 0 : this.getSuperTableId().hashCode() );
         result = 37 * result + ( getDataSourceType() == null ? 0 : this.getDataSourceType().hashCode() );
         result = 37 * result + ( getTxtSchemaFile() == null ? 0 : this.getTxtSchemaFile().hashCode() );
         result = 37 * result + ( getTableName() == null ? 0 : this.getTableName().hashCode() );
         result = 37 * result + ( getDataDirection() == null ? 0 : this.getDataDirection().hashCode() );
         result = 37 * result + ( getIsTopLevelXml() == null ? 0 : this.getIsTopLevelXml().hashCode() );
         result = 37 * result + ( getDataRange() == null ? 0 : this.getDataRange().hashCode() );
         result = 37 * result + ( getRangeCond() == null ? 0 : this.getRangeCond().hashCode() );
         result = 37 * result + ( getDataSelectDsid() == null ? 0 : this.getDataSelectDsid().hashCode() );
         result = 37 * result + ( getRangeClass() == null ? 0 : this.getRangeClass().hashCode() );
         result = 37 * result + ( getUpdateMode() == null ? 0 : this.getUpdateMode().hashCode() );
         result = 37 * result + ( getIncrMode() == null ? 0 : this.getIncrMode().hashCode() );
         result = 37 * result + ( getTimestampCol() == null ? 0 : this.getTimestampCol().hashCode() );
         result = 37 * result + ( getStatValues() == null ? 0 : this.getStatValues().hashCode() );
         result = 37 * result + ( getIncrClass() == null ? 0 : this.getIncrClass().hashCode() );
         result = 37 * result + ( getColumnEnumMode() == null ? 0 : this.getColumnEnumMode().hashCode() );
         result = 37 * result + ( getColEnumDsid() == null ? 0 : this.getColEnumDsid().hashCode() );
         result = 37 * result + ( getColEnumDsclass() == null ? 0 : this.getColEnumDsclass().hashCode() );
         result = 37 * result + ( getColEnumClass() == null ? 0 : this.getColEnumClass().hashCode() );
         result = 37 * result + ( getRelationColname() == null ? 0 : this.getRelationColname().hashCode() );
         result = 37 * result + ( getRelationDbname() == null ? 0 : this.getRelationDbname().hashCode() );
         result = 37 * result + ( getSuperRelationColname() == null ? 0 : this.getSuperRelationColname().hashCode() );
         result = 37 * result + ( getSuperRelationDbname() == null ? 0 : this.getSuperRelationDbname().hashCode() );
         result = 37 * result + ( getSortNum() == null ? 0 : this.getSortNum().hashCode() );
         result = 37 * result + ( getMemo() == null ? 0 : this.getMemo().hashCode() );
         result = 37 * result + ( getFileNameCol() == null ? 0 : this.getFileNameCol().hashCode() );
         return result;
   }   





}